#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "driver/gpio.h"
#include "blinker_api.h"
#include "esp_log.h"
#include "esp_sleep.h"
#include "esp_wifi.h"
#include "driver/pwm.h"
#include "driver/adc.h"
#define GPIO_LED  GPIO_NUM_2
#define GPIO_LED_BIT ( (1ULL<<GPIO_LED) | (1ULL<<GPIO_NUM_14) )

#define BUTTON_LED    "led_btn"
#define BUTTON_SLIDE    "fx_slide"
#define BUTTON_LIGHT    "light_btn"
#define TEXT_POWER    "tex_power"

int isInit();
void ledClose();
void ledOpen();
void ledFlash();

void initConfig(); 

void initPwm();

void initAdc();

void beginSleep();
void endSleep();

void led_callback(const blinker_widget_param_val_t *val);
void slide_callback(const blinker_widget_param_val_t *val);
void light_callback(const blinker_widget_param_val_t *val);
void duer_callback(const blinker_va_param_cb_t *val);

